package cn.lingyangwl.agile.gateway.remote;

import cn.lingyangwl.agile.model.constants.*;
import cn.lingyangwl.framework.core.response.*;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

/**
 * @author shenguangyang
 */
@FeignClient(contextId = "authRemote", value = ServiceCodeCons.AUTH_SERVICE, url = "${server-url:}")
public interface AuthRemote {

	@GetMapping(value = "/oauth2/client/listPermission")
	Resp<Map<String, List<String>>> listClientPermission(@RequestParam("clientId") String client);
}
